import { Tools } from 'weaver-mobile';

export const getDatas = params => {
    return Tools.callApi({
        url: '/api/workflow/createreq/wfinfo',
        method: 'GET',
        params,
    });
};


export const doAddWfToColl = params => {
    return Tools.callApi({
        url: '/api/workflow/createreq/managewfcoll',
        method: 'GET',
        params,
    });
}
 
export const requestImport = (params) => {
    return Tools.callApi({
        url: '/api/workflow/reqform/requestImport',
        method: 'POST',
        params,
    });
}

//更新新建流程最后一次使用的tab
export const saveUserOperateHabit = (params) => {
    return Tools.callApi({
        url: '/api/workflow/createreq/saveUserOperateHabit',
        method: 'POST',
        params,
    });
}